package com.anjho.dao;

import java.util.List;

import com.anjho.pojo.Profile;


public class DAOProfile extends DAOGeneric {

	private static final long serialVersionUID = -6797093276771933283L;
	
	public DAOProfile() {
		super();
	}
	
	public Profile getProfileByProCode(int procode) throws Exception {
		return (Profile)super.getObjectByParameter(new String[]{"procode"}, new Object[]{procode}, "Profile.getProfileByProCode");
		//return (Profile)super.getObjectBy(procode, "Profile.getProfileByProCode", "procode");
	}
	
	@SuppressWarnings("unchecked")
	public List<Profile> getProfileList() throws Exception {
		return (List<Profile>)super.getList("Profile.getProfileList");
	}
}
